package com.shangjinrong.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 借款人
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "borrower")
public class Borrower {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 身份证号
     */
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 手机
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 性别（1：男 0：女）
     */
    @TableField(value = "sex")
    private Byte sex;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Byte age;

    /**
     * 学历
     */
    @TableField(value = "education")
    private Byte education;

    /**
     * 是否结婚（1：是 0：否）
     */
    @TableField(value = "is_marry")
    private Boolean isMarry;

    /**
     * 行业
     */
    @TableField(value = "industry")
    private Byte industry;

    /**
     * 月收入
     */
    @TableField(value = "income")
    private Byte income;

    /**
     * 还款来源
     */
    @TableField(value = "return_source")
    private Byte returnSource;

    /**
     * 联系人名称
     */
    @TableField(value = "contacts_name")
    private String contactsName;

    /**
     * 联系人手机
     */
    @TableField(value = "contacts_mobile")
    private String contactsMobile;

    /**
     * 联系人关系
     */
    @TableField(value = "contacts_relation")
    private Byte contactsRelation;

    /**
     * 状态（0：未认证，1：认证中， 2：认证通过， -1：认证失败）
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除(1:已删除，0:未删除)
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private Boolean isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NAME = "name";

    public static final String COL_ID_CARD = "id_card";

    public static final String COL_MOBILE = "mobile";

    public static final String COL_SEX = "sex";

    public static final String COL_AGE = "age";

    public static final String COL_EDUCATION = "education";

    public static final String COL_IS_MARRY = "is_marry";

    public static final String COL_INDUSTRY = "industry";

    public static final String COL_INCOME = "income";

    public static final String COL_RETURN_SOURCE = "return_source";

    public static final String COL_CONTACTS_NAME = "contacts_name";

    public static final String COL_CONTACTS_MOBILE = "contacts_mobile";

    public static final String COL_CONTACTS_RELATION = "contacts_relation";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETED = "is_deleted";
}